import request from '@/utils/authRequest'

export function getPublicKey() {
  return request({
    url: '/common/getPublicKey',
    method: 'POST'
  })
}

/**
 * 获取中国省-市级联树状结构
 * @returns {AxiosPromise}
 */
export function pcTree() {
  return request({
    baseURL: process.env.VUE_APP_PlatForm_API,
    url: '/chinaDivision/pcTree',
    method: 'POST'
  })
}

/**
 * 获取中国省-市级联树状结构
 * @returns {AxiosPromise}
 */
export function pTree() {
  return request({
    baseURL: process.env.VUE_APP_PlatForm_API,
    url: '/chinaDivision/pTree',
    method: 'POST'
  })
}
